
const model =require('../../../dao/model/model')
const { baseService2 } = require('../../baseService2')

/* 
记得在serviceEnter里注册一下
*/

/* 异常类 */
class JobDesireServiceError extends Error {
    constructor(error,message='求职需求异常'){
        super()
        this.error = error
        this.message=message
    }
}


class JobDesireService extends baseService2{
    static ins = new JobDesireService()
    constructor(){
        super(model.JobDesireModel,JobDesireServiceError)
    }

    static getIns (){
        if(this.ins){
            return this.ins
        }else{
            return new JobDesireService()
        }
    }
}
module.exports={JobDesireService}
